package cn.mdx.mapper;

import cn.mdx.pojo.Achievement;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;

@Repository
public interface AchievementMapper {
    int deleteByPrimaryKey(Integer aid);

    int insert(Achievement record);

    int insertSelective(Achievement record);

    Achievement selectByPrimaryKey(Integer aid);

    int updateByPrimaryKeySelective(Achievement record);

    int updateByPrimaryKey(Achievement record);

    ArrayList<Achievement> getAchievements();

    //author:sfx-------------------------------------------------
    int addAchievement(Achievement achievement);
}